# -*- coding: UTF-8 -*-
from dataclasses import dataclass, field

from core.dto.base import BaseDTO


@dataclass
class DataSetDTO(BaseDTO):
    model: str = field(default="data.set", repr=False)
    datas: list = field(default_factory=list)
    total: int = field(default=0)

    def append(self, data: BaseDTO):
        self.datas.append(data)
        self.total += 1
